package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 应用启动类
 */
@SpringBootApplication(scanBasePackages = "com.example")
@EntityScan("com.example.entity")
public class App {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        printStartupBanner();
    }

    private static void printStartupBanner() {
        System.err.println("\n" +
                "        quu..__\n" +
                "         $$$b  `---.__\n" +
                "          \"$$b        `--.                          ___.---uuudP\n" +
                "           `$$b           `.__.------.__     __.---'      $$$$\"              .\n" +
                "             \"$b          -'            `-.-'            $$$\"              .'|\n" +
                "               \".                                       d$\"             _.'  |\n" +
                "                 `.   /                              ...\"             .'     |\n" +
                "                   `./                           ..::-'            _.'       |\n" +
                "                    /                         .:::-'            .-'         .'\n" +
                "                   :                          ::''\\          _.'            |\n" +
                "                  .' .-.             .-.           `.      .'               |\n" +
                "                  : /'$$|           .@\"$\\           `.   .'              _.-'\n" +
                "                 .'|$u$$|          |$$,$$|           |  <            _.-'\n" +
                "                 | `:$$:'          :$$$$$:           `.  `.       .-'\n" +
                "                 :                  `\"--'             |    `-.     \\\n" +
                "                |#'     `..'`..'          `###'        x:      /     /\n" +
                "                 \\                                   xXX|     /    ./\n" +
                "                  \\                                xXXX'|    /   ./\n" +
                "                  /`-.                                  `.  /   /\n" +
                "                 :    `-  ...........,                   | /  .'\n" +
                "                 |         ``:::::::'       .            |<    `.\n" +
                "                 |             ```|           x| \\ `.:``.\n" +
                "                 |                         .'    /'   xXX|  `:`M`M':.\n" +
                "                 |    |                    ;    /:' xXXX'|  -'MMMMM:'\n" +
                "                 `.  .'    神兽保佑         :    /:'       |-'MMMM.-'\n" +
                "                  |  |     永无bug        .'   /'        .'MMM.-'\n" +
                "                  `'`'                   :  ,'          |MMM<\n" +
                "                    |                     `'            |tbap\\\n" +
                "                     \\                                  :MM.-'\n" +
                "                      \\                 |              .''\n" +
                "                       \\.               `.            /\n" +
                "                        /     .:::::::.. :           /\n" +
                "                       |     .::::::::::`.         /\n" +
                "                        \\    :::::::::::::`.      /\n" +
                "                         \\    ::::::::::::: :    /\n" +
                "                          `-. `::::::::::'  .'\n" +
                "                             `)  .....  '\n");
        System.err.println("项目加载完成，可以开始了");
    }
} 